package com.example.demo.utils;

import org.springframework.util.DigestUtils;

public class MD5Utils {
    public static String md5(String pwd){
        String hashPwd= DigestUtils.md5DigestAsHex((pwd).getBytes());
        System.out.println(hashPwd);
        return hashPwd;
    }
}
